// src/services/category.ts

import type { CategoryTopItem } from "@/types/category"
import { getAction } from "@/utils/http"

/**
 * 分类列表-小程序
 */
export const getCategoryTopAPI = () => {
    return getAction<CategoryTopItem[]>({
      url: '/category/top',
    })
  }